<template>
  <el-card shadow="never">
    <div slot="header" class="card-header">
      <span>明细数据展示</span>
      <el-button type="primary" @click="$basefn.exportExcel('#out-table')">
        明细数据下载
      </el-button>
    </div>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="columnA" label="省份"> </el-table-column>
      <el-table-column prop="columnB" label="不合规个数（个）">
      </el-table-column>
      <el-table-column prop="columnC" label="管理时间"> </el-table-column>
    </el-table>
    <div class="pagination">
      <Pagination />
    </div>
  </el-card>
</template>

<script>
import Pagination from './Pagination'
export default {
  components: {
    Pagination
  },

  data() {
    return {
      tableData: [
        {
          columnA: '上海',
          columnB: '25341',
          columnC: '2020.1'
        },
        {
          columnA: '山东',
          columnB: '14524',
          columnC: '2020.8'
        },
        {
          columnA: '北京',
          columnB: '18364',
          columnC: '2020.7'
        },
        {
          columnA: '湖南',
          columnB: '7521',
          columnC: '2020.7'
        },
        {
          columnA: '四川',
          columnB: '21025',
          columnC: '2020.6'
        },
        {
          columnA: '云南',
          columnB: '4508',
          columnC: '2020.6'
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.pagination {
  float: right;
  margin: 10px;
}
</style>
